package cn.codeinn.service1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.codeinn.service1.util.ConfigUtil;

@RestController
@RequestMapping(value = "/config")
public class ConfigController {

	@GetMapping(value = "/{key}")
	public String selectValueByKey(@PathVariable("key") String key) {
		return ConfigUtil.config.getStr(key, "group", "");
	}

}
